namespace Framework.UI
{
	public partial class RoleCreateFrame : UIFrame
	{
		int roleId;
		void Ontg_1ValueChanged(bool isOn)
		{
			//Add Your Code Here
			if (isOn)
			{
                roleId = 1;
				SLogger.I("roleId = 1");
            }
        }
		void OnBtnCreateActorClicked()
		{
			//Add Your Code Here
			if(roleId != 1 && roleId != 2)
			{
				SLogger.E("Has No Valid Role Selected!");
				return;
			}
			Net.SendReqCreateRoleMessage(roleId);
		}
		void Ontg_2ValueChanged(bool isOn)
		{
			//Add Your Code Here
			if (isOn)
			{
				roleId = 2;
                SLogger.I("roleId = 2");
            }
        }
	}
}
